#include<stdio.h>

int main(){
	float speed,time,distance;
	speed=40;
	time=1+30/60.0;
	distance=speed*time;
	printf("小明家与公司距离 %.3f km\n",distance);
	return 0;
}
